Skip to main content
Version: 8.4.10.2

OptionPrintProbability

V8 Message Definiton

METADATA

AttributeValue
Topic4255-probabilities
MLink TokenOptProbModel
ProductSRLive
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
okey_atenum - AssetTypePRI'None'
okey_tsenum - TickerSrcPRI'None'
okey_tkVARCHAR(12)PRI''
okey_yrSMALLINT UNSIGNEDPRI, SEC0
okey_mnTINYINT UNSIGNEDPRI, SEC0
okey_dyTINYINT UNSIGNEDPRI, SEC0
okey_xxDOUBLEPRI0
okey_cpenum - CallPutPRI'Call'
stateModelenum - StateModelPRI'None'
prtPriceFLOAT0
prtSizeINT0
prtProbFLOAT0probability that this print will result in positive PnL
prtSideenum - BuySell'None'
bidPriceFLOAT0nbbo bid price
askPriceFLOAT0nbbo ask price
bidSizeINT0cumulative size bid price
askSizeINT0cumulative size ask price
avgBLink1mFLOAT0average buy link value trailing 10
maeBLink1mFLOAT0buy link value mean abs err trailing 1000
avgSLink1mFLOAT0average sell link value trailing 10
maeSLink1mFLOAT0sell link value mean abs err trailing 1000
avgBLink10mFLOAT0average buy link value trailing 100
maeBLink10mFLOAT0bid link value mean abs err trailing 1000
avgSLink10mFLOAT0average ask link value trailing 100
maeSLink10mFLOAT0ask link value mean abs err trailing 1000
bCounterINT0buy counter
sCounterINT0sell counter
prtTimestampBIGINT0feed timestamp from the packet
netTimestampBIGINT0inbound packet PTP timestamp from SR gateway switch from OptionPrint
smsTimestampBIGINT0state model server timestamp just before publish

PRIMARY KEY DEFINITION (Unique)

FieldSequence
okey_tk1
okey_yr2
okey_mn3
okey_dy4
okey_xx5
okey_cp6
okey_at7
okey_ts8
stateModel9

SECONDARY INDEX (ExpirationIndex) (Not Unique)

FieldSequence
okey_yr1
okey_mn2
okey_dy3

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRLive`.`MsgOptionPrintProbability` (
`okey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None',
`okey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None',
`okey_tk` VARCHAR(12) NOT NULL DEFAULT '',
`okey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0,
`okey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`okey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`okey_xx` DOUBLE NOT NULL DEFAULT 0,
`okey_cp` ENUM('Call','Put','Pair') NOT NULL DEFAULT 'Call',
`stateModel` ENUM('None','M1','M2','M3','M4') NOT NULL DEFAULT 'None',
`prtPrice` FLOAT NOT NULL DEFAULT 0,
`prtSize` INT NOT NULL DEFAULT 0,
`prtProb` FLOAT NOT NULL DEFAULT 0 COMMENT 'probability that this print will result in positive PnL',
`prtSide` ENUM('None','Buy','Sell') NOT NULL DEFAULT 'None',
`bidPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo bid price',
`askPrice` FLOAT NOT NULL DEFAULT 0 COMMENT 'nbbo ask price',
`bidSize` INT NOT NULL DEFAULT 0 COMMENT 'cumulative size @ bid price',
`askSize` INT NOT NULL DEFAULT 0 COMMENT 'cumulative size @ ask price',
`avgBLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average buy link value (trailing 10)',
`maeBLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'buy link value mean abs err (trailing 1000)',
`avgSLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average sell link value (trailing 10)',
`maeSLink1m` FLOAT NOT NULL DEFAULT 0 COMMENT 'sell link value mean abs err (trailing 1000)',
`avgBLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average buy link value (trailing 100)',
`maeBLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'bid link value mean abs err (trailing 1000)',
`avgSLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'average ask link value (trailing 100)',
`maeSLink10m` FLOAT NOT NULL DEFAULT 0 COMMENT 'ask link value mean abs err (trailing 1000)',
`bCounter` INT NOT NULL DEFAULT 0 COMMENT 'buy counter',
`sCounter` INT NOT NULL DEFAULT 0 COMMENT 'sell counter',
`prtTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'feed timestamp from the packet',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'inbound packet PTP timestamp from SR gateway switch (from OptionPrint)',
`smsTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'state model server timestamp (just before publish)',
PRIMARY KEY USING HASH (`okey_tk`,`okey_yr`,`okey_mn`,`okey_dy`,`okey_xx`,`okey_cp`,`okey_at`,`okey_ts`,`stateModel`),
KEY `ExpirationIndex` (`okey_yr`,`okey_mn`,`okey_dy`) USING HASH
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`okey_at`,
`okey_ts`,
`okey_tk`,
`okey_yr`,
`okey_mn`,
`okey_dy`,
`okey_xx`,
`okey_cp`,
`stateModel`,
`prtPrice`,
`prtSize`,
`prtProb`,
`prtSide`,
`bidPrice`,
`askPrice`,
`bidSize`,
`askSize`,
`avgBLink1m`,
`maeBLink1m`,
`avgSLink1m`,
`maeSLink1m`,
`avgBLink10m`,
`maeBLink10m`,
`avgSLink10m`,
`maeSLink10m`,
`bCounter`,
`sCounter`,
`prtTimestamp`,
`netTimestamp`,
`smsTimestamp`
FROM `SRLive`.`MsgOptionPrintProbability`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`okey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`okey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`okey_tk` = 'Example_okey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`okey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`okey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`okey_dy` = 1
AND
/* Replace with a DOUBLE */
`okey_xx` = 4.56
AND
/* Replace with a ENUM('Call','Put','Pair') */
`okey_cp` = 'Call'
AND
/* Replace with a ENUM('None','M1','M2','M3','M4') */
`stateModel` = 'None';

Doc Columns Query

SELECT * FROM SRLive.doccolumns WHERE TABLE_NAME='OptionPrintProbability' ORDER BY ordinal_position ASC;